gpg: Use just the addrspec from the Signer's UID.
authorWerner Koch <wk@gnupg.org>
Fri, 3 May 2019 08:53:34 +0000 (10:53 +0200)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Thu, 22 Aug 2019 19:11:59 +0000 (20:11 +0100)
commit78e0170068d878fc74970d54975a171b5e5d43a9
treed4ff110772fc29f327a12d1d860b760544690b8b
parent13452d0077f4af7748aabe11c91308ffe62bec80
gpg: Use just the addrspec from the Signer's UID.

* g10/parse-packet.c (parse_signature): Take only the addrspec from a
Signer's UID subpacket.
--

This is to address a problem in the currentr OpenKeychain which put
the entire UID into the subpacket.  For example our Tofu code can only
use the addrspec and not the entire UID.

Reported-by: Wiktor Kwapisiewicz <wiktor@metacode.biz>
Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit 05204b72497db093f5d2da4a2446c0264a946296)

Gbp-Pq: Topic from-2.2.16
Gbp-Pq: Name gpg-Use-just-the-addrspec-from-the-Signer-s-UID.patch
g10/parse-packet.c